import flask,json
server = flask.Flask(__name__)
@server.route('/index',methods=['get'])
def index():
    res={'msg':'这是一个接口','msg_dode':0}
    return json.dumps(res)
@server.route('/indexs',methods=['get'])




def indexs():
    ress={'msg':'这是一个接口a','msg_dode':0}
    return json.dumps(ress)
if __name__ == '__main__':
    server.run(port=5001,debug=True)

